package org.example.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PrintOrder implements Serializable {

    //@Schema(description = "打印单id")
    private Long id;

    //@Schema(description = "订单id")
    private Long orderId;


    //@Schema(description ="运单号")
    private String wayBillNo;

    //@Schema(description = "自提点名称")
    private String selfPickUpName;

    //@Schema(description = "自提点编码")
    private String selfPickUpNo;

    //@Schema(description = "收件人姓名")
    //@Sensitive(strategy = SensitiveStrategy.CHINESE_NAME)
    private String userName;

    //@Schema(description = "收件人电话")
    //@Sensitive(strategy = SensitiveStrategy.PHONE)
    private String userPhone;

    //@Schema(description = "收件人地址")
    private String userAddress;

    //@Schema(description = "发货人姓名")
    private String sendName;

    //@Schema(description = "发货人电话")
    private String sendPhone;

    //@Schema(description = "发货人地址")
    private String sendAddress;

    //@Schema(description = "订单详情")
    private List<String> orderDetailList;

    //@Schema(description = "订单商品数量")
    private Integer orderProductCount;

    //@Schema(description = "打印次数")
    private Integer printCount;

    //@Schema(description = "最后一次打印时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime printLastTime;

    //@Schema(description = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;
}
